/**
 * Created by 小敏哥 on 2017/12/1.
 */
import {
    CURRENT_ADDRESS
} from "../actions/actionsTypes";

export default function addressReducer(state = {}, action) {
    switch (action.type) {
        case CURRENT_ADDRESS:
            return Object.assign({}, state, {currentAddress: action.data});
        default:
            return state;
    }
}
